package cn.xy.ymcc.dto;

import cn.xy.ymcc.util.AssertUtil;
import lombok.Data;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 *手机注册表单信息实例类
 */
@Data
public class RegisterDto {
    @Pattern(regexp = AssertUtil.phoneReg,message = "手机号不合法")
    private String mobile;
    @Size(min = 3,max = 6,message = "密码必须在3到6位")
    private String password;
    private String imageCodeKey;
    @Size(min = 3,max = 4,message = "请输入正确的图形验证码")
    private String imageCode;
    @Size(min = 3,max = 6,message = "密码必须在6位")
    private String smsCode;
    private Integer regChannel;

}
